/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const videoRouter = {
  name: 'Video',
  path: '/video',
  component: Layout,
  redirect: '/video/list',
  isDiyPath: true,
  meta: {
    title: '视频管理',
    icon: 'example'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views-my/video/list'),
      name: 'VideoList',
      isDiyPath: true,
      meta: {
        title: '视频列表',
        icon: 'list',
        noCache: true,
        activeMenu: '/video/list'
      }
    },
    {
      path: 'detail/:id(\\d+)',
      component: () => import('@/views-my/video/detail'),
      name: 'VideoDetail',
      hidden: true,
      isDiyPath: true,
      meta: {
        title: '视频详情',
        icon: 'eye-open',
        noCache: true,
        activeMenu: '/video/list'
      }
    },
    {
      path: 'add',
      component: () => import('@/views-my/video/add'),
      name: 'AddVideo',
      isDiyPath: true,
      meta: {
        title: '添加视频',
        icon: 'diqiuyi',
        noCache: true,
        activeMenu: '/video/add'
      }
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views-my/video/edit'),
      name: 'EditVideo',
      isDiyPath: true,
      meta: {
        title: '修改视频',
        icon: 'edit',
        noCache: true,
        activeMenu: '/video/edit'
      }
    }
  ]
}

export default videoRouter
